<?php 
//二维数组或多维数组   练习
include '../fns/fn.php';
$arr=array(
   array(
       "title"=>"好好",
       "thumb"=>"http://vi0.ku6img.com/data2/p2/cms/2013/7/30/pic_1375151475971.jpg",
       "click"=>"123"       
   ),
    array(
        "title"=>"坏坏",
        "thumb"=>"http://vi2.ku6img.com/data2/p5/cms/2013/7/30/pic_1375148031700.jpg",
        "click"=>"2222" 
   )
);
foreach ($arr as $k=>$v): //$k=>$v就是键名—键值    foreach是php中的遍历函数 
?>
<style>
    li{
       list-style: none;
       float: left;
       margin-left: 10px; 
    }
</style>
<ul>
    <li>
        <p>【<?php echo $k;?>】标题：<?php echo $v['title'];?></p>
        <img src="<?php echo $v['thumb'];?>"/>
        <p>点击次数：<?php echo $v['click'];?>次</p>
    </li>
</ul>
<?php endforeach; ?>





